package com.goldgov.sensitive.dao;

import java.util.List;
import com.goldgov.sensitive.service.Sensitive;
import com.goldgov.sensitive.service.SensitiveQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SensitiveDao{
	Sensitive getSensitiveID();
	
	void addSensitive(Sensitive obj);
	
	int deleteSensitive(@Param("ids") String[] ids);
	
	int updateSensitive(Sensitive obj);
	
	int preUpdateSensitiveByAdmin(Sensitive obj);
	
	int updateSensitiveByAdmin(Sensitive obj);
	
	Sensitive getSensitive(String id);
	
	List<Sensitive> listSensitive(@Param("query") SensitiveQuery query);
	
	List<Sensitive> listSensitiveByAdmin(@Param("query") SensitiveQuery query);
	
	void updateSensitiveByID(Sensitive obj);
	
}